#ifndef CONTENTAREA_H
#define CONTENTAREA_H

#include <QWidget>
#include <QStackedWidget>
#include "farmmanagementwidget.h"
#include "collaborationwidget.h"
#include "farminfowidget.h"



class ContentArea : public QWidget
{
    Q_OBJECT
public:
    explicit ContentArea(QWidget *parent = nullptr);
    void setpermission(QString permission);

public slots:
    void showFarmManagement();
    void showCollaboration();
    void showFarmInfo();

signals:

private:
    QStackedWidget *stackedWidget;

    FarmManagementWidget *farmManagementWidget;
    CollaborationWidget *collaborationWidget;
    FarmInfoWidget *farmInfoWidget;
     QString permission;

};

#endif // CONTENTAREA_H
